-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Don't automatically unpause focus trap #54593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't automatically unpause focus trap #54593
Conversation
@allroundexperts Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
What is your eta to test this @allroundexperts? thanks! |
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
Will review this today @mountiny |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-30.at.2.54.14.PM.movAndroid: mWeb ChromeScreen.Recording.2025-01-15.at.3.43.40.AM.moviOS: NativeScreen.Recording.2024-12-30.at.2.24.31.PM.moviOS: mWeb SafariScreen.Recording.2024-12-30.at.2.23.00.PM.movMacOS: Chrome / SafariScreen.Recording.2024-12-30.at.2.13.07.PM.movMacOS: DesktopScreen.Recording.2024-12-30.at.2.20.36.PM.mov |
@bernhardoj On Android web, pressing the keyboard Screen.Recording.2024-12-30.at.2.28.33.PM.mov |
I can't repro it on this PR. Maybe it's a different issue. android.mweb.mp4 |
@bernhardoj I tested again on the build https://54593.pr-testing.expensify.com As you can see, there are still issues. Screen.Recording.2024-12-30.at.7.32.43.PM.mov |
Same, still can't repro it. The composer has a green outline, so the focus works correctly. android.mp4Can you try disabling all focus traps and see if the issue still happens? |
@bernhardoj Can you maybe try to merge main and then we can trigger a rebuild? It's not working for me on Android web. |
@allroundexperts merged with main |
@allroundexperts how is this looking? |
@mountiny Can you re-trigger the build here? |
🚧 @mountiny has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well. New build seems to be working on Android mweb as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bernhardoj can you please update the link to the upstream pr?
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Updated. Btw, I just checked the focus-trap and focus-trap-react are already updated containing the upstream fix. |
Nice, can you please work on the follow up to update and remove the patch after this passes staging (to ensure no regressions) |
The upstream fix is actually different from this PR, so maybe we can just revert this and I open a new PR to update focus-trap-react? |
Hmm, I guess we can just revert this in your update PR |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.86-0 🚀
|
Sounds good, PR is here: #55285 |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.86-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.86-3 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.89-0 🚀
|
#55690 found when running this PR |
Does not seem related |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Explanation of Change
Upstream PR: focus-trap/focus-trap#1340
Fixed Issues
$ #54335
PROPOSAL: #54335 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: have a workspace
#admins
text link. This will open the admins roomPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ioa.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4